import request from "./request"

export const GoLogin = (params) => request.post("/login",params)
// 送货单全部订单
export const GetAllList = (params) => request.get("/order/v1/list",{params})
// 待发货单
export const GetfoundList = (params) => request.get("/order/v1/list/1",{params})
// 待收货单
export const GetwaitList = (params) => request.get("/order/v1/list/2",{params})
// 待评价
export const GetaswrList = (params) => request.post("/order/v1/evaluate",params)
//发货
export const NowFound = (params) => request.post("/order/v1/send",params)
//确认收货
export const Nowwaitout = (params) => request.post(`/order/v1/confirmReceipt/${params.serialNo}`,params)
// 消息中心全部
export const GetAllmessage = (params) => request.get("/api/message",{params})
//消息详情
export const Getxiangqing = (params) => request.get(`/api/message/${params.id}`,{params})
//消息中心列表(标记为已读)
export const NowReader = (params) => request.put(`/api/message/updates?id=${params.id}`,params)
//个人中心用户信息展示
export const GetUserList = (params) => request.get(`/users/list`,{params})
//版本信息
export const GetBanbenData = (params) => request.get(`/users/version`,{params})
//个人中心用户详情
export const GetUserInfo = (params) => request.get(`/users/info`,{params})
//物流单评价
export const GetStarList = (params) => request.get(`/api/star`,{params})
//提交物流单评价
export const PutStarData = (params) => request.put(`/api/star?id=${params.id}`,params)
// 查看评价信息详情
export const GetStarxiangqingData = (params) => request.get(`/api/star/${params.id}`,{params})
//客户列表信息
export const GetCustList = (params) => request.get(`/api/cust`,{params})
//客户信息详情
export const GetCustMessxiang = (params) => request.get(`/api/cust/${params.id}`,{params})
//客户信息视图
export const GetCustMessParnent = (params) => request.post(`/api/cust/${params.id}`,params)
//修改客户信息
export const PutUserMess = (params) => request.put(`/api/cust?id=${params.id}`,params)
//走访列表信息
export const GetVistList = (params) => request.get(`/api/visit`,{params})